﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.Inspection.InspectionManage
{
    public class GetInspectionCheckInput : PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 任务ID
        /// </summary>
        public Guid? DescId { get; set; }
        /// <summary>
        /// 节点ID
        /// </summary>
        public Guid? NodeId { get; set; }
        /// <summary>
        /// 工序工部ID
        /// </summary>
        public Guid? ProcessId { get; set; }

        /// <summary>
        /// 查询时间1
        /// </summary>
        public DateTime? StartDateTime { get; set; }
        /// <summary>
        /// 查询时间2
        /// </summary>
        public DateTime? EndDateTime { get; set; }
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
